import 'package:formz/formz.dart';

enum CaseAlongValidationError { empty }

class CaseAlong extends FormzInput<String, CaseAlongValidationError> {
  const CaseAlong.pure() : super.pure('');
  const CaseAlong.dirty([String value = '']) : super.dirty(value);

  @override
  CaseAlongValidationError validator(String value) {
    return value?.isNotEmpty == true ? null : CaseAlongValidationError.empty;
  }
}
